import request from '@/utils/request'
export function getNewMessages(params) {
  return request({
    url: '/api/Common/WebMessage/GetNewMessages',
    method: 'get',
    params,
    loadEnable: true
  })
}

export function getMessages(params) {
  return request({
    url: '/api/Common/WebMessage/GetMessages',
    method: 'get',
    params
  })
}

export function messageRead(msgId) {
  return request({
    url: '/api/Common/WebMessage/MessageRead',
    method: 'get',
    params: { msgId }
  })
}

export function getMyWebMessages(params) {
  return request({
    url: '/api/Common/WebMessage/GetMyWebMessages',
    method: 'get',
    params
  })
}

export function getMyUnReadMessageCount() {
  return request({
    url: '/api/Common/WebMessage/GetMyUnReadMessageCount',
    method: 'get',
  })
}